/*****************************************************************************
 * Copyright (C) Stacy Curl. All rights reserved.                            *
 * ------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the BSD      *
 * style license a copy of which has been included with this distribution in *
 * the LICENSE.txt file.                                                     *
 *****************************************************************************/
package picounit.features.mock_collaborator_injection;

import picounit.features.Feature;
import picounit.features.base.FeatureRegistry;
import picounit.mocker.MockFactory;

// TODO; Create extension point instead of dependancy on CollaboratorsInvocationHandler
public class MockCollaboratorInjectionFeature implements Feature {
	private final MockFactory mockFactory;

	public MockCollaboratorInjectionFeature(MockFactory mockFactory) {
		this.mockFactory = mockFactory;
	}

	public void addFeatures(FeatureRegistry featureRegistry) {
		featureRegistry.addFeatures(new CollaboratorsInvocationHandler(mockFactory));
	}
}
